package com.geline.easytrans.enums;

import com.geline.easytrans.annotation.DictType;
import com.geline.easytrans.dict.IDict;

/**
 * 系统日志类型定义
 * @author: mengxin
 * @date: 2023/5/19 16:12
 */
@DictType(value = "sys_system_log", label = "系统日志类型")
public enum SystemLogEnum implements IDict {
    error("异常日志"),
    task("定时任务"),
    other("其它");

    private String desc;

    SystemLogEnum(String desc){
        this.desc = desc;
    }

    public String getDesc() {
        return desc;
    }

    @Override
    public String getLabel() {
        return desc;
    }

    @Override
    public Object getValue() {
        return this.name();
    }
}
